package net.mushystuff.dogalogue.tapestry.pages;

import net.mushystuff.dogalogue.beans.Dog;
import net.mushystuff.dogalogue.services.DogService;

import org.apache.tapestry.ioc.annotations.Inject;

public class EditDog {

	private Dog _dog;

	@Inject
	private DogService dogService;

	public Dog getDog() {
		return _dog;
	}

	public void setDog(final Dog dog) {
		this._dog = dog;
	}
	
	void onAction() {
		dogService.addDog(_dog);
	}
}
